I have run a script that runs when I execute it manually. Can anyone please tell me how I can automatically run this script when I update an Object in the module? |
Re: Run a script automatically after an Object is updated |
Re: Run a script automatically after an Object is updated You will want a post-attr-save trigger. Good luck, but this may get you started. Trigger trg = current; if (null trg) halt() // Error? AttrDef ad = attrdef(trg); if (null ad) halt() // Error? Object obj = object(trg); if (null obj) halt() // Error? Module mod = module(obj); if (null mod) halt() // Error? string ValuChanged = value(trg) // ?Perhaps this doesn't work? string Name = ad.name if (I don't care about changes to Name) // then halt else I can see that obj.Name just got the value ValuChanged, other code goes here
|
Re: Run a script automatically after an Object is updated |